package com.jdbc.text7;

import java.sql.SQLException;

public class Fun1 {
    public static void main(String[] args) throws SQLException {
        NewsDaoImp1 newsDaoImp1 = new NewsDaoImp1();
        //newsDaoImp1.getNewsByTitle();
        //newsDaoImp1.addNews(7,"军事",new Date());
        //newsDaoImp1.addNews(3,2,"军事","dfsd","dsf",new Date());
        //newsDaoImp1.deleteNews(3);
       newsDaoImp1.updateNews(2,"java1");
    }


}
